home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2002-12-05 | 1.1 KB | 45 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="1"
- "COUNT"="2"
- "UIPATH"="Internet\Internet Information Server\System"
- "NAME"="Admin Information"
- "VERSION"="1.17"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Name"
- "TEXT 2"="EMail"
- "DESCRIPTION 1"="Use this plug-in to change the information of the administrator of this server."
- "DESCRIPTION 2"="NOTE: This settings also affect Personal Web Server (PWS)."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
-
- sPC="HKLM\System\CurrentControlSet\Services\W3SVC\Enum\"
- sP="HKLM\System\CurrentControlSet\Services\W3SVC\Parameters\"
- Sub Plugin_Initialize
- if RegPathExists(spC) then
- s=RegReadValue(sp&"AdminName")
- SetUIElement 1,s
-
- s=RegReadValue(sp&"AdminEmail")
- SetUIElement 2,s
- else
- Disable
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
- Call RegWriteValue(sp&"AdminName",s,1)
-
- s=GetUIElement(2)
- Call RegWriteValue(sp&"AdminEmail",s,1)
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-